<?php
	class MiniatureViewHelper{
		public static function displayMiniatureEditable($miniatureEntite) {
			$nomCompletMiniature = $miniatureEntite->nomCompletMiniature;
			$idPhoto = str_replace(".","_",$miniatureEntite->nomPhoto);
			?>
				<a href="javascript:selectionnerImage('<?php echo $idPhoto;?>')">
					<img class="cadre_miniature" src="<?php echo $nomCompletMiniature;?>" id="<?php echo $idPhoto;?>"/>
				</a>
			<?php
		}
		
		public static function displayMiniatureCliquable($idAlbumPhoto, $nomCompletMiniature) {
			$repertoireMiniature = dirname($nomCompletMiniature);
			$nomPhoto = basename($nomCompletMiniature);
			$repertoirePhoto = dirname($repertoireMiniature);
			$nomCompletPhoto = "$repertoirePhoto/$nomPhoto";
			?>	
				<a href="javascript:ouvrirPopupVisionneuse('<?php echo $idAlbumPhoto; ?>', '<?php echo $nomPhoto; ?>');">
					<img src="<?php echo $nomCompletMiniature;?>" class="cadre_miniature" id="<?php echo $idPhoto;?>"/>
				</a>
			<?php
		}
	}
?>